<?php
/* ANNONCE */

$sql = "
    SELECT 
        int_id_logo,
        var_src,
        var_title,
        txt_description,
        var_size,
        int_id_state
    FROM
        tbl_logos
    WHERE int_id_state <> 3 AND id_int_partenaire = 0
    ORDER BY int_id_logo DESC
    LIMIT 1";

$ROW = mysql_fetch_assoc(mysql_query($sql, $cnn));

if (!empty($ROW)):
    $size = explode('x', $ROW['var_size']);
    $desc = $ROW['txt_description'];
    $src = $ROW['var_src'];
    ?>

    <div id="top-ads">
        <div class="fixed">
            <strong>A ne pas manquer au CSME : </strong> <em><?= $ROW['var_title']; ?></em> <a href="javascript:;" class="buttonlink green bxshd">en savoir plus</a>
        </div>
    </div>


    <div id="popup-ad">
        <div class="part-02">
            <div class="part-content">
                <h3>A ne pas manquer au CSME</h3>
                <h2><?= $ROW['var_title']; ?></h2>

                <div class="wraper">
                    <?php if (!empty($src) && $src != '0'): ?>
                        <div class="image"><img width="<?= $size[0]; ?>" height="<?= $size[1]; ?>" src="images/annonces/<?= $ROW['var_src']; ?>" /></div>
                    <?php endif; ?>

                    <?php if (!empty($desc)): ?>
                        <p class="desc">
                            <?= $desc; ?>
                        </p>
                    <?php endif; ?>
                </div>

            </div>
        </div>
    </div>


    <?php
endif;
?>